<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>无标题文档</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .bigbox{
            margin: 0 auto;
            width: 1500px;
            height: 1000px;
            background-color: ghostwhite;
        }
        .menu{
            width: 1500px;
            height: 60px;
            background-color:#545652;
        }
        div.menu li{
            float: left;
            list-style-type: none;
        }
        div.menu li a{
            display: block;
            text-decoration: none;
            color :black;
            line-height: 60px;
            margin: 0 10px 0 0;
            width: 120px;
            color:darkgray;
            text-align: center;
            font-size: 25px;
        }
        div.menu li a:hover{
            color: white;
        }
        thead th{
            width: 100px;
            height: 30px;
        }
        .box{
            width: 1000px;
            height: 800px;
            margin: 30px auto;
            background-color:#ADD8E6;
            border-radius: 10px;
        }

        button{
            margin-top: 30px;
            margin-left: 30px;
            background-color: #3796D1;
            width: 100px;
            height: 30px;

            border: none;
            border-radius: 10px;
        }
        a{
            color: aliceblue;
            text-decoration: none;
        }
        table{
            width: 400px;
            height: 40px;
            margin-top: 10px;
            margin-left: 30px;
        }
        tr td:nth-of-type(1){
            width: 90px;
            text-align: center;

        }
        tr td:nth-of-type(2){
            width: 300px;
            text-align: center;


        }
        thead{
            background-color: aliceblue;
        }
        th{
            color:#3796D1;
            height: 25px;

        }
        .head{
            width: 1000px;
            height: 60px;
            margin: 20px auto;

        }
        .head p{
            width: 1200px;
            height: 60px;
            line-height: 60px;
            font-size: 40px;
            color: #3796D1;
        }
        tbody{
            position: relative;
        }
        tbody tr:nth-of-type(2) td{
            width: 197px;
            height: 100px;
            /*            background-color: aliceblue;*/
            position: absolute;
            top: 0px;
            left: 199px;

        }
    </style>
</head>

<body>
<div class="bigbox">
    <div class="menu">
        <ul>
            <li><a th:href="@{/}">主页</a></li>
            <li><a th:href="@{/movies}">电影</a></li>
            <li><a th:href="@{/directors}">导演</a></li>
            <li><a th:href="@{/performers}">演员</a></li>
            <li><a th:href="@{/box_offices}">票房情况</a></li>
            <li><a th:href="@{/evaluations}">评价</a></li>
        </ul>
    </div>
    <div class="head">
        <p>票房情况</p>
    </div>
    <div class="box">


        <div>
            <!--			"@{/students/new}"-->
            <button><a th:href ="@{/box_offices/new}" >新增票房记录</a></button>

            <table>
                <thead>
                <th>电影</th>
                <th>票房</th>
                </thead>
                <tbody>
                <tr th:each="aMovie: ${movies}" >
                    <td th:text="${aMovie.movie_name}"></td>


                </tr>

                <tr th:each="aBox_office: ${box_offices}">
                    <td th:text="${aBox_office.number}"></td>

                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

</body>
</html>

